package com.tank.netty.chat.client;

import io.netty.channel.ChannelHandlerContext;
import io.netty.channel.SimpleChannelInboundHandler;

/**
 * Created with IntelliJ IDEA.
 * User: SuQiEr
 * Date:2017/5/30 0030
 * Time: 上午 9:54
 * To change this template use File | Settings | File Templates.
 */
public class ChatClientHandler extends SimpleChannelInboundHandler<String> {

    @Override
    protected void channelRead0(ChannelHandlerContext ctx, String msg) throws Exception {
        System.out.println(String.format("消息 %s",msg));
    }
}
